package inventory.entity.po;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ttxxi
 * @since 2019-11-18
 */
public class PermissionRecordPo extends Model<PermissionRecordPo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "perm_rec_id", type = IdType.UUID)
    private String permRecId;
    private String userId;
    private Integer permissionListId;
    private String description; //权限描述
    private String permission; //权限具体内容
    private String workId; //员工的工号




    public String getPermRecId() {
        return permRecId;
    }

    public void setPermRecId(String permRecId) {
        this.permRecId = permRecId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getPermissionListId() {
        return permissionListId;
    }

    public void setPermissionListId(Integer permissionListId) {
        this.permissionListId = permissionListId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    @Override
    protected Serializable pkVal() {
        return this.permRecId;
    }

    @Override
    public String toString() {
        return "PermissionRecordPo{" +
                "permRecId='" + permRecId + '\'' +
                ", userId='" + userId + '\'' +
                ", permissionListId=" + permissionListId +
                ", description='" + description + '\'' +
                ", permission='" + permission + '\'' +
                ", workId='" + workId + '\'' +
                '}';
    }
}
